package com.usian.admin.fegin;

        import com.usian.model.common.dtos.ResponseResult;
        import com.usian.model.media.dtos.WmNewss;
        import com.usian.model.media.pojos.WmNews;
        import org.springframework.cloud.openfeign.FeignClient;
        import org.springframework.web.bind.annotation.PathVariable;
        import org.springframework.web.bind.annotation.RequestBody;
        import org.springframework.web.bind.annotation.RequestMapping;

        import java.util.List;

@FeignClient("leadnews-wemedia")
public interface NewsFegin {
    @RequestMapping("/wemedia/upload/findNews")
    public ResponseResult list(@RequestBody WmNewss wmNews);

    @RequestMapping("/wemedia/upload/findAll")
    public List<WmNews> findAll();

    @RequestMapping("/wemedia/upload/findById/{id}")
    public WmNews findById(@PathVariable(value = "id") Integer id);

    @RequestMapping("/wemedia/upload/updateNews")
    public ResponseResult updateNews(@RequestBody WmNews wmNews);
}
